Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 70b8ebef582e42daf822e01a7003f751e0a01cf1


Parents : 6d5a7b0
Author : Mark Qvist <mark@unsigned.io>
Date : 2024-03-17T01:08:42+01:00

Fixed automatic telemetry updates from collector not being initiated

Changes

1 files changed, 5 insertions(+), 1 deletions(-)


Diff

diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py
index a29f2fa5..bacd5989 100644
--- a/sbapp/sideband/core.py
+++ b/sbapp/sideband/core.py
@@ -2682,7 +2682,11 @@ class SidebandCore():
RNS.log("Next telemetry request is "+("in "+RNS.prettytime(next_request-now) if next_request-now > 0 else "now"), RNS.LOG_EXTREME)
if now > last_request_timebase+request_interval:
- RNS.log("Initiating telemetry request to collector", RNS.LOG_DEBUG)
+ try:
+ RNS.log("Initiating telemetry request to collector", RNS.LOG_DEBUG)
+ self.request_latest_telemetry(from_addr=self.config["telemetry_collector"])
+ except Exception as e:
+ RNS.log("An error occurred while requesting a telemetry update from collector. The contained exception was: "+str(e), RNS.LOG_ERROR)
except Exception as e:
RNS.log("An error occurred while requesting scheduled telemetry from collector: "+str(e), RNS.LOG_ERROR)


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────